home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga CD-ROM Collection
/
Amiga CD-ROM Collection - Auge 4000 and Cactus and Demo Util.iso
/
auge4000
/
46
/
lib
/
memory
/
calloc.c
next >
Wrap
C/C++ Source or Header
|
1990-06-20
|
313b
|
25 lines
/*
* CALLOC.C
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*
* calloc(elmsize, elms)
*/
#include <stdlib.h>
void *
calloc(elmSize, elms)
size_t elmSize;
size_t elms;
{
void *ptr;
long bytes = elmSize * elms;
if (ptr = malloc(bytes))
clrmem(ptr, bytes);
return(ptr);
}